import request from '@/utils/request'


//商户标签设置列表
export function merchantTagSettingList(params) {   
    return request({
        url:'/shenye/merchant/tag/setting/list',
        method: 'get',
        params
    })
}


// -----------------------------------------------

// 中台商户标签添加店铺下拉框
export function shenyeShopTagSelect(params) {
    return request({
      url: '/common/v1/shenye/shop/tag/select',
      method: 'get',
      params
    })
}

// 中台-新增商户标签设置明细
export function addShenyeShopTag(data) {
    return request({
      url: '/shenye/shop/tag',
      method: 'post',
      data
    })
}

// 商户标签设置明细列表
export function shenyeShopTagList(params) {
    return request({
      url: '/shenye/shop/tag/list',
      method: 'get',
      params
    })
}

// 中台-批量删除商户标签设置明细
export function deleteShenyeShopTagRemoveByIds(data) {
    return request({
      url: '/shenye/shop/tag/removeByIds',
      method: 'delete',
      data
    })
}

export function deleteShenyeShopTag(id) {
    return request({
      url: `/shenye/shop/tag/${id}`,
      method: 'delete',
    })
}